package geometry;

import foundationgeom.Transformation;
import foundationgeom.Vector;

public class Transform {
//	public double dx=0;
//	public double dy=0;
//	public double dz=0;
//	
//	public double rotx=0;
//	public double roty=0;
//	public double rotz=0;
	
	public double sx=0;
	public double sy=0;
	public double sz=0;
	
	public Transformation transformation;
	
	public Transform() {
	}
	
	public Transform(Vector translation, Vector scale) {
//        dx=translation.getX();
//        dy=translation.getY();
//        dz=translation.getZ();
        sx=scale.getX();
        sy=scale.getY();
        sz=scale.getZ();
    }

    public Transform(Transformation transformation, Vector scale) {
        this.transformation = transformation; 
        sx=scale.getX();
        sy=scale.getY();
        sz=scale.getZ();
    }

    public String toString() {
        String s = transformation.toString();
//	    String s= "dx=" + dx + " dy=" + dy + " dz=" + dz + " sx=" + sx + " sy=" + sy + " sz=" + sz;
	    s=s.concat( /*"dx=" + dx + " dy=" + dy + " dz=" + dz +*/ " sx=" + sx + " sy=" + sy + " sz=" + sz);
	    return s;
	}
}
